from django.shortcuts import render
from time import sleep

# Create your views here.
from django.views.decorators.cache import cache_page


@cache_page(60)
def show_redis(request):
    data_list = []
    for i in range(10):
        data_list.append(f'第{i}条数据！')
    sleep(30)
    return render(request, 'myapp/show_redis.html', locals())
